package com.ymt.bpm.service.platform.helper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Service;

/**
 * Created by Johnny on 2017/7/13.
 */
@Service
public class EnvironmentService {

    @Autowired
    private Environment env;

    public String getProperty(String key, String defaultVal) {
        return env.getProperty(key, defaultVal);
    }

}
